export function stateFilter(s) {
	if (s == 0) {
		return "停机";
	} else if (s == 1) {
		return "运行";
	} else if (s == 2) {
		return "待机";
	} else if (s == 3) {
		return "故障";
	}
}
export function modeFilter(m) {
	if (m == 0) {
		return "恒流模式";
	} else if (m == 2) {
		return "恒压模式";
	} else if (m == 4) {
		return "直流功率";
	} else if (m == 8) {
		return "交流功率";
	}
}
export function bmsStateFilter(b) {
	if (b == 0) {
		return "初始状态";
	} else if (b == 1) {
		return "正常状态";
	} else if (b == 2) {
		return "满充";
	} else if (b == 3) {
		return "满放";
	} else if (b == 4) {
		return "告警";
	} else if (b == 5) {
		return "故障";
	}
}
